Eli Zaretskii [Sun, 8 Aug 2010 16:51:56 +0000 (19:51 +0300)]
Fix overlay arrow display, make doc strings bidi-friendly.
xdisp.c (display_line): Move the handling of overlay arrow after
the call to find_row_edges. (Bug#6699)
cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
editfns.c (Fline_beginning_position, Fline_end_position): State
in the doc strings that start and end of line are in the logical order.
Eli Zaretskii [Sun, 8 Aug 2010 16:43:26 +0000 (19:43 +0300)]
Make some doc strings bidi-friendly.
cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
editfns.c (Fline_beginning_position, Fline_end_position): State
in the doc strings that start and end of line are in the logical order.
Eli Zaretskii [Sun, 8 Aug 2010 16:23:11 +0000 (19:23 +0300)]
Fix overlay arrow display (bug #6699).
xdisp.c (display_line): Move the handling of overlay arrow after
the call to find_row_edges.
Jay Belanger [Sun, 8 Aug 2010 03:04:57 +0000 (22:04 -0500)]
calc.el (calc-trail-mode,calc-refresh): Use `face' property to italicize headers.
(calc-highlight-selections-with-faces): New variable.
(calc-selected-face, calc-nonselected-face): New faces.
calccomp.el (math-comp-highlight-string): Use
`calc-highlight-selections-with-faces' to determine how to highlight
subformulas.
calc-sel.el (calc-show-selections): Change message to something
appropriate.
calc.texi (Making Selections, Selecting Subformulas)
(Customizing Calc): Mention how to use faces to emphasize selected
subformulas.
Michael Mauger [Sat, 7 Aug 2010 23:57:07 +0000 (19:57 -0400)]
* progmodes/sql.el (sql-mode-sqlite-font-lock-keywords): Added
SQLite 3 keywords, functions and datatypes.
(sql-interactive-mode): Removed `comint-process-echoes' set to t
(Bug#6686).
Chong Yidong [Sat, 7 Aug 2010 20:26:55 +0000 (16:26 -0400)]
Avoid restrictions when copying window selection.
* src/keyboard.c (command_loop_1):
* src/insdel.c (prepare_to_modify_buffer): Don't call validate_region.
Chong Yidong [Sat, 7 Aug 2010 20:10:30 +0000 (16:10 -0400)]
Fix last change.
Chong Yidong [Sat, 7 Aug 2010 19:39:04 +0000 (15:39 -0400)]
Change `select-active-region' mechanics.
Save region text prior to buffer modification.
Set window selection lazily, during `deactivate-mark' or after each
command when the region is temporarily active.
* lisp/cus-start.el: Add custom declaration for select-active-regions.
* lisp/mouse.el (mouse-drag-track): Remove hacks to deal with old
select-active-regions implementation.
(mouse-yank-at-click): Doc fix.
* lisp/simple.el (select-active-regions): Move to keyboard.c.
(deactivate-mark): Used saved-region-selection.
(select-active-region): Function removed.
(activate-mark, set-mark, push-mark-command)
(handle-shift-selection): Don't call it.
(keyboard-quit): Avoid adding the region to the window selection.
* src/insdel.c (prepare_to_modify_buffer): Save active region text to
Vsaved_region_selection.
* src/keyboard.c (Vselect_active_regions): Move from simple.el.
(Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New
vars.
(command_loop_1): Set window selection prior to deactivating the
mark.
* src/xselect.c (QPRIMARY): Move to keyboard.c.
Eli Zaretskii [Sat, 7 Aug 2010 10:26:42 +0000 (13:26 +0300)]
NEWS: Mention the Hebrew translation of the tutorial.
Eli Zaretskii [Sat, 7 Aug 2010 10:11:07 +0000 (13:11 +0300)]
simple.el (delete-forward-char): Doc fix.
Eli Zaretskii [Sat, 7 Aug 2010 09:50:08 +0000 (12:50 +0300)]
Clean up TUTORIAL.he.
tutorials/TUTORIAL.he: Don't use acronyms.
Eli Zaretskii [Sat, 7 Aug 2010 09:31:03 +0000 (12:31 +0300)]
Evaluate file-local variables in tutorials.
tutorial.el (help-with-tutorial): Hack safe file-local variables
after reading the tutorial.
Juanma Barranquero [Sat, 7 Aug 2010 01:10:12 +0000 (03:10 +0200)]
Remove duplicate declarations.
* lib-src/ebrowse.c (usage, version, mark_virtual)
* src/alloc.c (lisp_malloc)
* src/buffer.c (set_buffer_internal, set_buffer_internal_1)
* src/charset.h (emacs_mule_charset)
* src/dispextern.h (inhibit_free_realized_faces, redraw_frame)
(redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
(bitch_at_user)
* src/lisp.h (Fcheck_coding_system, Fget_text_property)
(Qfunction, Qcompletion_ignore_case, QCwidth, QCsize)
Dan Nicolaescu [Fri, 6 Aug 2010 20:08:26 +0000 (13:08 -0700)]
* src/process.c: Simplify include logic.
Dan Nicolaescu [Fri, 6 Aug 2010 20:05:40 +0000 (13:05 -0700)]
* sysdep.c: Remove declarations.
Dan Nicolaescu [Fri, 6 Aug 2010 19:52:47 +0000 (12:52 -0700)]
Move declarations to header files.
* src/keyboard.h (quit_char): Add declaration.
* src/process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
(QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary): Add
declarations.
* sysdep.c:
* src/w32.c: Remove the above declarations.
Alan Mackenzie [Fri, 6 Aug 2010 19:48:59 +0000 (19:48 +0000)]
cc-cmds.el (c-mask-paragraph, c-fill-paragraph): Fix for the case that a
C style comment has its delimiters alone on their respective lines.
Dan Nicolaescu [Fri, 6 Aug 2010 19:07:16 +0000 (12:07 -0700)]
Remove extern declarations in .c files, .h files have them.
* src/xterm.c:
* src/xdisp.c:
* src/process.c:
* src/msdos.c:
* src/image.c:
* src/gtkutil.c:
* src/fileio.c:
* src/eval.c: Remove declarations.
Dan Nicolaescu [Fri, 6 Aug 2010 19:01:35 +0000 (12:01 -0700)]
* src/frame.c (frame_params): Make const.
Dan Nicolaescu [Fri, 6 Aug 2010 18:56:41 +0000 (11:56 -0700)]
* src/lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
Dan Nicolaescu [Fri, 6 Aug 2010 18:48:24 +0000 (11:48 -0700)]
emacs.c cleanups.
* src/emacs.c (emacs_copyright, emacs_version): Make static.
(Vinitial_window_system, Vauto_save_list_file_name)
(Vinhibit_redisplay): Remove declarations.
(main): Remove HAVE_SHM code, unused. Remove _I386 conditional
for AIX.
Dan Nicolaescu [Fri, 6 Aug 2010 18:41:15 +0000 (11:41 -0700)]
Use const for some arrays and functions.
* src/xterm.h (xg_set_icon_from_xpm_data):
* src/xfns.c (xg_set_icon_from_xpm_data):
* src/term.c (fkeys):
* src/keyboard.c (lispy_accent_keys, lispy_function_keys)
(lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
(lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
(frame.c frame_parms):
* src/emacs-icon.h (gnu_xpm_bits):
* src/callint.c (callint_argfuns): Use const.
Jan D [Fri, 6 Aug 2010 17:38:01 +0000 (19:38 +0200)]
* src/sysdep.c: Move include term.h last of includes (Bug#6812).
Eli Zaretskii [Fri, 6 Aug 2010 15:53:11 +0000 (18:53 +0300)]
xdisp.c (display_line): Fix a typo in a comment.
Eli Zaretskii [Fri, 6 Aug 2010 15:05:21 +0000 (18:05 +0300)]
Fix redisplay bugs due to uninitialized glyphs.
Add diagnostics tools.
dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
msdos.c (IT_display_cursor): Log cursor position on termscript.
.gdbinit (pgx): Display the avoid_cursor_p flag.
Eli Zaretskii [Fri, 6 Aug 2010 14:54:06 +0000 (17:54 +0300)]
Fix redisplay bugs due to uninitialized glyphs in frame glyph pool.
dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
msdos.c (IT_display_cursor): Log cursor position on termscript.
.gdbinit (pgx): Display the avoid_cursor_p flag.
Michael Albinus [Fri, 6 Aug 2010 14:34:23 +0000 (16:34 +0200)]
* net/tramp.el (tramp-handle-start-file-process ): Set connection
property "vec".
(tramp-process-sentinel): Use it for flushing the cache. We
cannot do it via the process buffer, the buffer could be deleted
already when running the sentinel.
Michael Albinus [Fri, 6 Aug 2010 13:53:59 +0000 (15:53 +0200)]
* comint.el (comint-mode): Make directory tracking functions
functional on remote files. (Bug#6764)
Juanma Barranquero [Fri, 6 Aug 2010 12:35:00 +0000 (14:35 +0200)]
src/ChangeLog: Fix typos.
Juanma Barranquero [Fri, 6 Aug 2010 12:25:10 +0000 (14:25 +0200)]
src/makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
Jan D [Fri, 6 Aug 2010 11:28:59 +0000 (13:28 +0200)]
More undeclared function fixes and add -Wimplicit-function-declaration.
If a function returns Lisp_Object it must be declared, otherwise on a 64-bit
system, it will return just 32 bits (int).
* configure.in: Use -Wimplicit-function-declaration if compiler supports it.
* src/keyboard.h (poll_for_input_1): Unconditionally declare.
* src/xterm.h (x_get_focus_frame): Declare.
Jan D [Fri, 6 Aug 2010 11:04:29 +0000 (13:04 +0200)]
Can't include menu.h in window.c for X targets.
* nsterm.h (x_set_menu_bar_lines): Declare.
* window.c: Don't include menu.h, it depends on lots of other .h-files.
Jan D [Fri, 6 Aug 2010 10:12:41 +0000 (12:12 +0200)]
Fix missing prototypes for HAVE_NS (caused crash) and vrious warnings.
* configure.in: Check for util.h.
* src/bidi.c (bidi_dump_cached_states): Fix fprintf warning.
* src/emacs.c: Include src/nsterm.h if HAVE_NS.
* src/image.c (xpm_scan, xpm_make_color_table_v)
(xpm_put_color_table_v, xpm_get_color_table_v)
(xpm_make_color_table_h, xpm_put_color_table_h)
(xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
(xpm_load): Convert to ANSI C prototypes.
* src/lisp.h (fmod_float): Declare.
* src/menu.h (x_set_menu_bar_line): Declare.
(free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
* src/window.c: Include menu.h.
* src/nsfns.m (have_menus_p, ns_display_info_for_name)
(x_set_cursor_type, ns_appkit_version_str)
(ns_appkit_version_int, ns_do_applescript)
(x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
(syms_of_nsfns): Convert to ANSI C prototypes.
* src/nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
prototypes.
* src/nsimage.m (ns_load_image): Move NSTRACE after declarations.
* src/nsmenu.m (popup_activated, name_is_separator)
(syms_of_nsmenu): Convert to ANSI C prototypes.
(runMenuAt): Prototypes and move declarations before code.
* src/nsterm.h : Include sysselect.h.
(x_sync, x_get_focus_frame, x_set_mouse_position)
(x_set_mouse_pixel_position, x_make_frame_visible)
(x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
(x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
(x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
(syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
Declare
* src/process.c: Check HAVE_UTIL_H. Include src/nsterm.h if HAVE_NS.
* src/nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
(ns_ring_bell, ns_defined_color, hide_hourglass)
(x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
Convert to ANSI C prototypes.
(x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
before code.
* src/sysdep.c: Check HAVE_TERM_H
* src/term.c: Check HAVE_SYS_IOCTL_H.
* src/unexmacosx.c (print_region_list, print_regions)
(build_region_list, find_emacs_zone_regions)
(unexec_regions_merge, read_load_commands, dump_it)
(unexec_init_emacs_zone): Convert to ANSI C prototypes.
* src/xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
Dan Nicolaescu [Fri, 6 Aug 2010 04:09:54 +0000 (21:09 -0700)]
emacsclient.c cleanups.
* lib-src/emacsclient.c: Move socket related #includes together with the
rest of the #includes. Move a WINDOWSNT includes closer together.
(HAVE_CONFIG_H): Remove.
(NO_RETURN): Remove, defined in config.h.
(main): Convert definition to standard C.
Dan Nicolaescu [Fri, 6 Aug 2010 04:01:00 +0000 (21:01 -0700)]
* lisp/vc/diff-mode.el (diff-mode-shared-map): Bind g to revert-buffer.
Katsumi Yamaoka [Fri, 6 Aug 2010 03:44:13 +0000 (03:44 +0000)]
(rfc2047-encode): Use utf-8 charset as a last resort.
Katsumi Yamaoka [Fri, 6 Aug 2010 03:43:29 +0000 (03:43 +0000)]
(rfc2047-encode): Use utf-8 charset as a last resort.
Katsumi Yamaoka [Fri, 6 Aug 2010 03:40:47 +0000 (03:40 +0000)]
Merge from mainline.
Juanma Barranquero [Fri, 6 Aug 2010 00:44:56 +0000 (02:44 +0200)]
src/ChangeLog: Fix entry.
Dan Nicolaescu [Fri, 6 Aug 2010 00:36:12 +0000 (17:36 -0700)]
Cleanup process.c.
* src/process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
subprocesses, only MSDOS does not define HAVE_SOCKETS.
(socket_options): Use const char* for name.
Katsumi Yamaoka [Fri, 6 Aug 2010 00:26:44 +0000 (00:26 +0000)]
Merge from mainline.
Juanma Barranquero [Fri, 6 Aug 2010 00:16:24 +0000 (02:16 +0200)]
Fix changes in revnos 100982..100984 for Windows build.
* dired.c (compile_pattern):
* syssignal.h (signal_handler_t): Restore declarations.
* w32font.c (Qlatin): Remove declaration.
* menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
* xmenu.c [USE_X_TOOLKIT || USE_GTK]:
Don't declare xmalloc_widget_value and digest_single_submenu.
Dan Nicolaescu [Fri, 6 Aug 2010 00:07:36 +0000 (17:07 -0700)]
* src/syssignal.h (signal_handler_t): Restore accidentally removed definition.
Dan Nicolaescu [Thu, 5 Aug 2010 23:34:12 +0000 (16:34 -0700)]
Remove extern declarations in .c files, .h files have them.
* src/data.c:
* src/dired.c:
* src/editfns.c:
* src/filelock.c:
* src/fns.c:
* src/font.c:
* src/fontset.c:
* src/frame.c:
* src/fringe.c:
* src/ftfont.c:
* src/gtkutil.c:
* src/indent.c:
* src/keyboard.c:
* src/keymap.c:
* src/lread.c:
* src/menu.c:
* src/print.c:
* src/search.c:
* src/sound.c:
* src/window.c:
* src/xdisp.c:
* src/xfaces.c:
* src/xfns.c:
* src/xfont.c:
* src/xftfont.c:
* src/xmenu.c:
* src/xterm.c: Remove declarations.
Dan Nicolaescu [Thu, 5 Aug 2010 23:22:18 +0000 (16:22 -0700)]
Cleanup syssignal.h.
* src/syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
(main_thread): Move down to remove #ifdef.
(SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
Remove conditional definition following unconditional ones.
Dan Nicolaescu [Thu, 5 Aug 2010 23:15:24 +0000 (16:15 -0700)]
Add declarations to header files.
* src/keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
declarations, menu.h has them.
(QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
(Vinput_method_function, Qinput_method_function)
(Qevent_symbol_element_mask, last_event_timestamp):
* src/dispextern.h (Voverflow_newline_into_fringe):
* src/font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
(syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
(syms_of_w32font, syms_of_nsfont):
* src/fontset.h (find_font_encoding, Qlatin):
* src/frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
(Vtool_bar_mode, set_frame_menubar):
* src/ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
* src/xterm.h (Qx_gtk_map_stock):
* src/keymap.h (meta_prefix_char): Add declarations.
* src/lisp.h: Remove HAVE_SHM code, unused.
(QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
(QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
(Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
(Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
(Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
(Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
(Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
(Qmode_line_inactive, Qmouse, Qoverriding_local_map)
(Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
(Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
(Qwindow_scroll_functions, Vafter_load_alist)
(Vauto_save_list_file_name, Vface_alternative_font_family_alist)
(Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
(Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
(Vprint_length, Vprint_level, Vscalable_fonts_allowed)
(Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
(Vwindow_system_version, Vx_no_window_manager, initial_argc)
(initial_argv, last_nonmenu_event, load_in_progress)
(noninteractive_need_newline, scroll_margin): Add declarations.
Katsumi Yamaoka [Thu, 5 Aug 2010 22:50:19 +0000 (22:50 +0000)]
Merge from mainline.
Dan Nicolaescu [Thu, 5 Aug 2010 22:23:53 +0000 (15:23 -0700)]
* src/term.c: Remove dead code.
Dan Nicolaescu [Thu, 5 Aug 2010 22:20:09 +0000 (15:20 -0700)]
Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
* src/term.c (dissociate_if_controlling_tty): Use USG5 instead of
USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
which is what was there before BSD_PGRPS was removed.
Dan Nicolaescu [Thu, 5 Aug 2010 18:30:35 +0000 (11:30 -0700)]
Regenerate configure.
Eli Zaretskii [Thu, 5 Aug 2010 17:23:57 +0000 (20:23 +0300)]
REALLY rename unexec.c => unexcoff.c in MAINTAINERS.
admin/MAINTAINERS: Rename src/unexec.c => src/unexcoff.c.
Eli Zaretskii [Thu, 5 Aug 2010 17:22:34 +0000 (20:22 +0300)]
REALLY rename src/unexec.c => src/unexcoff.c.
admin/MAINTAINERS: Rename src/unexec.c => src/unexcoff.c.
Eli Zaretskii [Thu, 5 Aug 2010 17:16:27 +0000 (20:16 +0300)]
Rename src/unexec.c => src/unexcoff.c.
src/unexcoff.c: Renamed from unexec.c.
src/deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
configure.in (UNEXEC_OBJ): Rename unexec.o => unexcoff.o.
admin/MAINTAINERS: Rename src/unexec.c => src/unexcoff.c.
etc/AUTHORS: Rename unexec.o => unexcoff.o.
etc/PROBLEMS: Rename unexec.o => unex*.o.
lisp/emacs-lisp/find-gc.el (find-gc-source-files): Rename
unexec.c => unexcoff.c.
lisp/emacs-lisp/authors.el (authors-fixed-entries): Rename
unexec.c => unexcoff.c.
msdos/sed1v2.inp (UNEXEC_OBJ): Edit to unexcoff.o, due to renaming of
unexec.c => unexcoff.c.
Eli Zaretskii [Thu, 5 Aug 2010 17:11:32 +0000 (20:11 +0300)]
Rename src/unexec.c => src/unexcoff.c.
src/unexcoff.c: Renamed from unexec.c.
src/deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
configure.in (UNEXEC_OBJ): Rename unexec.o => unexcoff.o.
admin/MAINTAINERS: Rename src/unexec.c => src/unexcoff.c.
etc/AUTHORS: Rename unexec.o => unexcoff.o.
etc/PROBLEMS: Rename unexec.o => unex*.o.
lisp/emacs-lisp/find-gc.el (find-gc-source-files): Rename
unexec.c => unexcoff.c.
lisp/emacs-lisp/authors.el (authors-fixed-entries): Rename
unexec.c => unexcoff.c.
msdos/sed1v2.inp (UNEXEC_OBJ): Edit to unexcoff.o, due to renaming of
unexec.c => unexcoff.c.
Michael Albinus [Thu, 5 Aug 2010 13:51:21 +0000 (15:51 +0200)]
* tramp.texi (External packages): File attributes cache flushing
for asynchronous processes.
Michael Albinus [Thu, 5 Aug 2010 08:15:22 +0000 (10:15 +0200)]
* net/tramp.el (tramp-handle-dired-uncache): Flush directory
cache, not only file cache.
(tramp-process-sentinel): New defun.
(tramp-handle-start-file-process): Use it, in order to invalidate
file caches.
Nick Roberts [Thu, 5 Aug 2010 05:18:55 +0000 (17:18 +1200)]
Fix compilation error.
Katsumi Yamaoka [Wed, 4 Aug 2010 22:51:45 +0000 (22:51 +0000)]
Merge from mainline.
Andreas Schwab [Wed, 4 Aug 2010 21:48:36 +0000 (23:48 +0200)]
* configure.in: Restore accidentally removed use of
GCC_TEST_OPTIONS/NON_GCC_TEST_OPTIONS.
Stefan Monnier [Wed, 4 Aug 2010 18:10:07 +0000 (20:10 +0200)]
* src/sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
Katsumi Yamaoka [Tue, 3 Aug 2010 22:49:16 +0000 (22:49 +0000)]
Merge from mainline.
Juanma Barranquero [Tue, 3 Aug 2010 21:54:16 +0000 (23:54 +0200)]
src/ChangeLog: Add missing bug reference.
Johan Bockgård [Tue, 3 Aug 2010 16:37:00 +0000 (18:37 +0200)]
* src/data.c (Flocal_variable_p): Handle variable aliases correctly.
Leo [Tue, 3 Aug 2010 12:22:23 +0000 (14:22 +0200)]
* server.el (server-start): Simplify loop.
Juanma Barranquero [Mon, 2 Aug 2010 23:20:48 +0000 (01:20 +0200)]
nt/config.nt (TIME_WITH_SYS_TIME): Remove #undef, unused (bug#6754).
Katsumi Yamaoka [Mon, 2 Aug 2010 22:48:42 +0000 (22:48 +0000)]
Merge from mainline.
Stefan Monnier [Mon, 2 Aug 2010 22:35:38 +0000 (00:35 +0200)]
* lisp/frame.el (screen-height, screen-width, set-screen-width)
(set-screen-height): Remove ancient compatibility aliases.
Jan D. [Mon, 2 Aug 2010 14:23:06 +0000 (16:23 +0200)]
* xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
to TRUE if depth of screen is < 16.
Jan D. [Mon, 2 Aug 2010 12:50:03 +0000 (14:50 +0200)]
Don't use Gtk+ tooltip unless Gtk+ version => 2.14.
* gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
USE_GTK_TOOLTIP.
(xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP
(xg_show_tooltip, xg_hide_tooltip): Do nothing unless
USE_GTK_TOOLTIP.
(xg_create_frame_widgets): Surrond tooltip-related code with ifdef
USE_GTK_TOOLTIP.
(xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
* xterm.h (USE_GTK_TOOLTIP): New define.
(struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
Jan D. [Mon, 2 Aug 2010 12:46:33 +0000 (14:46 +0200)]
Don't use Gtk+ tooltip unless Gtk+ version => 2.14.
* gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
USE_GTK_TOOLTIP.
(xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP
(xg_show_tooltip, xg_hide_tooltip): Do nothing unless
USE_GTK_TOOLTIP.
(xg_create_frame_widgets): Surrond tooltip-related code with ifdef
USE_GTK_TOOLTIP.
(xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
* xterm.h (USE_GTK_TOOLTIP): New define.
(struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
Stefan Monnier [Mon, 2 Aug 2010 10:25:27 +0000 (12:25 +0200)]
* lisp/textmodes/fill.el (justify-current-line): Don't add 1 to nspaces
when justifying. It seems useless and harmful for ncols=1.
Stefan Monnier [Mon, 2 Aug 2010 09:00:46 +0000 (11:00 +0200)]
* lisp/emacs-lisp/timer.el (timer-event-handler): Protect against timers
that change current buffer.
Jan D. [Mon, 2 Aug 2010 07:03:12 +0000 (09:03 +0200)]
Enable ICANON (Bug#6771). Any long line problem must be solved differently.
There is AFAIK no bug report or test case for the long line problem.
* sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
to Control-D (Bug#6771).
Juanma Barranquero [Mon, 2 Aug 2010 06:42:03 +0000 (08:42 +0200)]
* editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
Katsumi Yamaoka [Mon, 2 Aug 2010 01:04:51 +0000 (01:04 +0000)]
Merge from mainline.
Katsumi Yamaoka [Sun, 1 Aug 2010 23:50:24 +0000 (23:50 +0000)]
Fix last nnmail-get-new-mail-1 change that caused double encoding in XEmacs.
2010-08-01 Katsumi Yamaoka <yamaoka@jpl.org>
* nnmail.el (nnmail-get-new-mail-1): Revert.
* nnml.el (nnml-active-number): Make sure names of newly created groups
in nnml-group-alist are encoded.
Katsumi Yamaoka [Sun, 1 Aug 2010 23:49:32 +0000 (23:49 +0000)]
Fix last nnmail-get-new-mail-1 change that caused double encoding in XEmacs.
2010-08-01 Katsumi Yamaoka <yamaoka@jpl.org>
* nnmail.el (nnmail-get-new-mail-1): Revert.
* nnml.el (nnml-active-number): Make sure names of newly created groups
in nnml-group-alist are encoded.
Katsumi Yamaoka [Sun, 1 Aug 2010 22:48:29 +0000 (22:48 +0000)]
Merge from mainline.
Alan Mackenzie [Sun, 1 Aug 2010 18:07:10 +0000 (18:07 +0000)]
Enhance CC Mode manual to cover the new Java features.
YAMAMOTO Mitsuharu [Sun, 1 Aug 2010 16:48:15 +0000 (18:48 +0200)]
mouse.el: Match "mouse-2" at the beginning of the string. (Bug#6765)
Jan D [Sun, 1 Aug 2010 13:57:07 +0000 (15:57 +0200)]
Use Gtk+ tooltips by default for Gtk+ Emacs.
* lisp/cus-start.el (x-gtk-use-system-tooltips): New variable.
* src/gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
(xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets): New
functions.
(xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
text so qttip_cb is called. Connect query-tooltip to qttip_cb.
Remove code that is commented out.
* src/gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
(xg_show_tooltip, xg_hide_tooltip): Declare.
* src/xfns.c (x_gtk_use_system_tooltips): New variable.
(Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
new gtkutil tooltip functions to show the tooltip.
(Fx_hide_tip): Call xg_hide_tooltip.
(syms_of_xfns): Defvar x-gtk-use-system-tooltips.
* src/xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
calling gtk_widget_queue_draw.
(x_free_frame_resources): Call xg_free_frame_widgets.
* src/xterm.h (struct x_output): Add ttip_widget, ttip_window and
ttip_lbl.
Juanma Barranquero [Sun, 1 Aug 2010 04:37:41 +0000 (06:37 +0200)]
Fix typos in ChangeLogs.
Chong Yidong [Sun, 1 Aug 2010 00:38:19 +0000 (20:38 -0400)]
Package listing tweaks.
* emacs-lisp/package.el (package--list-packages): Fix column
alignment.
(package--builtins): Tweak descriptions.
(package-print-package): Upcase descriptions if necessary. Show
all built-in packages in font-lock-builtin-face.
(package-list-packages-internal): Omit "emacs" package. Show
status of built-in packages as "built-in".
Stefan Monnier [Sun, 1 Aug 2010 00:14:14 +0000 (02:14 +0200)]
* src/keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
Chong Yidong [Sat, 31 Jul 2010 21:26:56 +0000 (17:26 -0400)]
Adapt mouse-3 behavior to recent selection changes (Bug#6701).
* lisp/mouse.el (mouse-save-then-kill): Doc fix. Deactivate mark
before killing to preserve the primary selection.
* lisp/term/x-win.el (x-select-text): Doc fix.
* src/xselect.c (x_own_selection): Use list4.
Alan Mackenzie [Sat, 31 Jul 2010 20:01:08 +0000 (20:01 +0000)]
Enhance Java Mode to handle Java 5.0 (Tiger) and Java 6 (Mustang).
Contributed by Nathaniel Flath.
Jan D [Sat, 31 Jul 2010 17:21:16 +0000 (19:21 +0200)]
* faces.el (face-all-attributes): Improved documentation (Bug#6767).
Eli Zaretskii [Sat, 31 Jul 2010 17:13:03 +0000 (20:13 +0300)]
Add more index entries for large-file-warning-threshold.
files.texi (Visiting): Add more index entries for
large-file-warning-threshold.
Eli Zaretskii [Sat, 31 Jul 2010 15:46:58 +0000 (18:46 +0300)]
Add a Hebrew translation of the tutorial.
etc/tutorials/TUTORIAL.he: New file.
etc/tutorials/TUTORIAL.translators: Add TUTORIAL.he.
lisp/files.el (bidi-paragraph-direction): Define safe local values.
lisp/language/hebrew.el ("Hebrew"): Add TUTORIAL.he to
language-info-alist. Remove outdated FIXME in a comment.
Alan Mackenzie [Sat, 31 Jul 2010 09:39:24 +0000 (09:39 +0000)]
cc-cmds.el (c-mask-paragraph): Fix bug #6688, Auto-fill broken in C/C++
modes.
Dan Nicolaescu [Fri, 30 Jul 2010 04:42:38 +0000 (21:42 -0700)]
* src/buffer.c (Qwindow): Do not define, already defined in data.c.
(syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
Katsumi Yamaoka [Fri, 30 Jul 2010 02:11:29 +0000 (02:11 +0000)]
Merge from mainline.
Katsumi Yamaoka [Fri, 30 Jul 2010 02:02:05 +0000 (02:02 +0000)]
Encode names of nnml groups that nnmail-get-new-mail creates in active file.
2010-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
* nnmail.el (nnmail-get-new-mail-1): Encode group names possibly
containing non-ASCII characters in active file for nnml back end.
Katsumi Yamaoka [Fri, 30 Jul 2010 02:01:04 +0000 (02:01 +0000)]
Encode names of nnml groups that nnmail-get-new-mail creates in active file.
2010-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
* nnmail.el (nnmail-get-new-mail-1): Encode group names possibly
containing non-ASCII characters in active file for nnml back end.
Katsumi Yamaoka [Thu, 29 Jul 2010 23:01:42 +0000 (23:01 +0000)]
Merge from mainline.
Juanma Barranquero [Thu, 29 Jul 2010 20:16:18 +0000 (22:16 +0200)]
Fix typos in ChangeLogs.
Jan D [Thu, 29 Jul 2010 20:01:08 +0000 (22:01 +0200)]
Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf
* configure.in: Check for dirent.h
* dired.c, sysdep.c: test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR
* s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
s/msdos.h, s/usg5-4.h: don't define SYSV_SYSTEM_DIR
* sed2v2.inp (HAVE_DIRENT_H): Edit to 1
Dan Nicolaescu [Thu, 29 Jul 2010 18:34:39 +0000 (11:34 -0700)]
Rename s/usg5-4.h -> s/usg5-4-common.h.
* s/usg5-4.h: Rename file to ...
* src/s/usg5-4-common.h: ... this for consistency with what we do for BSD.
* src/s/unixware.h:
* src/s/sol2-6.h:
* src/s/irix6-5.h: Update includes accordingly.
Jan D [Thu, 29 Jul 2010 18:08:51 +0000 (20:08 +0200)]
* xfns.c (x_set_tool_bar_position): Remove debug fprintf.
Jan D. [Thu, 29 Jul 2010 17:10:41 +0000 (19:10 +0200)]
Add doc and NEWS for tool-bar-position.
* doc/emacs/frames.texi (Tool Bars): Add doc for tool-bar-position.
* doc/lispref/frames.texi (Layout Parameters): Add doc for tool-bar-position.